/*
 ============================================================================
 Name		: RtWeiboAppUi.h
 Author	  : hou maoqing
 Copyright   : Your copyright notice
 Description : Declares UI class for application.
 ============================================================================
 */

#ifndef __RtWeiboAPPUI_h__
#define __RtWeiboAPPUI_h__

// INCLUDES
#include <aknappui.h>
#include "RtUiManagerObserver.h"
#include "RtEnv.h"
#include "RtUiManager.h"
#include "RtSingleTimer.h"

// FORWARD DECLARATIONS
class CRtWeiboAppView;

CRtUiManager* CreateUiManager();

// CLASS DECLARATION
/**
 * CRtWeiboAppUi application UI class.
 * Interacts with the user through the UI and request message processing
 * from the handler class
 */
class CRtWeiboAppUi : public CAknAppUi,public MRtUiManagerObserver,MRtSingleTimerObserver
	{
public:
	void ConstructL();
	CRtWeiboAppUi();
	virtual ~CRtWeiboAppUi();

private:
	void HandleCommandL(TInt aCommand);
	void HandleStatusPaneSizeChange();
	
	virtual void HandleUiExit();
	virtual void NotifyDraw();
	virtual void Create2SendSms(const char* pText,int nLen);
	virtual void MakeNewCall(const char* pText,int nLen);
	
	void TimerFinished(TInt nID);

private:
	CRtWeiboAppView* iAppView;
	CRtSingleTimer* m_pTimer;
	
public:
	CRtUiManager* m_pRtWeiboApp;
	};

#endif // __RtWeiboAPPUI_h__
// End of File
